<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>user info</title>
</head>
<body>
<!--<div>-->
<!--    ID: <label th:text="${user.id}"></label><br/>-->
<!--    name: <label th:text="${user.name}"></label><br/>-->
<!--    age: <label th:text="${user.age}"></label><br/>-->
<!--</div>-->

<div th:object="${user}">
    ID: <label th:text="*{id}"></label><br/>
    name: <label th:text="*{name}"></label><br/>
    age: <label th:text="*{age}"></label><br/>
</div>
</body>
</html>